<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>pybindgen.cppmethod.CppNoConstructor</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pybindgen-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="pybindgen-module.html">Package&nbsp;pybindgen</a> ::
        <a href="pybindgen.cppmethod-module.html">Module&nbsp;cppmethod</a> ::
        Class&nbsp;CppNoConstructor
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="pybindgen.cppmethod.CppNoConstructor-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class CppNoConstructor</h1><p class="nomargin-top"><span class="codelink"><a href="pybindgen.cppmethod-pysrc.html#CppNoConstructor">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_pybindge_38" name="uml_class_diagram_for_pybindge_38">
<area shape="rect" href="pybindgen.cppmethod.CppNoConstructor-class.html#__init__" title="reason &#45;&#45; string indicating reason why the class cannot be constructed." alt="" coords="80,255,277,273"/>
<area shape="rect" href="pybindgen.cppmethod.CppNoConstructor-class.html#generate_call" title="dummy method, not really called" alt="" coords="80,273,277,292"/>
<area shape="rect" href="pybindgen.cppmethod.CppNoConstructor-class.html#generate" title="Generates the wrapper code code_sink &#45;&#45; a CodeSink instance that will &#160;receive the generated code class_ &#45;&#45; the c++ class wrapper the method &#160;belongs to" alt="" coords="80,292,277,311"/>
<area shape="rect" href="pybindgen.cppmethod.CppNoConstructor-class.html" title="Class that generates a constructor that raises an exception saying that the class has no constructor." alt="" coords="79,229,279,312"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#PARSE_TUPLE" title="pybindgen.typehandlers.base.ForwardWrapperBase.PARSE_TUPLE" alt="" coords="17,28,340,47"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#PARSE_TUPLE_AND_KEYWORDS" title="pybindgen.typehandlers.base.ForwardWrapperBase.PARSE_TUPLE_AND_KEYWORDS" alt="" coords="17,47,340,65"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#HAVE_RETURN_VALUE" title="pybindgen.typehandlers.base.ForwardWrapperBase.HAVE_RETURN_VALUE" alt="" coords="17,65,340,84"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#reset_code_generation_state" title="pybindgen.typehandlers.base.ForwardWrapperBase.reset_code_generation_state" alt="" coords="17,87,340,105"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#set_parse_error_return" title="pybindgen.typehandlers.base.ForwardWrapperBase.set_parse_error_return" alt="" coords="17,105,340,124"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#write_open_wrapper" title="pybindgen.typehandlers.base.ForwardWrapperBase.write_open_wrapper" alt="" coords="17,124,340,143"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#write_close_wrapper" title="pybindgen.typehandlers.base.ForwardWrapperBase.write_close_wrapper" alt="" coords="17,143,340,161"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#generate_body" title="Generate the wrapper function body code_sink &#45;&#45; a CodeSink object that will receive the code" alt="" coords="17,161,340,180"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#get_py_method_def_flags" title="Get a list of PyMethodDef flags that should be used for this wrapper." alt="" coords="17,180,340,199"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html" title="Generic base for all forward wrapper generators." alt="" coords="16,11,341,200"/>
</map>
  <img src="uml_class_diagram_for_pybindge_38.gif" alt='' usemap="#uml_class_diagram_for_pybindge_38" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<p>Class that generates a constructor that raises an exception saying 
  that the class has no constructor.</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Instance Methods</span></td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pybindgen.cppmethod.CppNoConstructor-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">reason</span>)</span><br />
      reason -- string indicating reason why the class cannot be 
      constructed.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.cppmethod-pysrc.html#CppNoConstructor.__init__">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for___init___32-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for___init___32-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for___init___32" name="call_graph_for___init___32">
<area shape="rect" href="pybindgen.cppclass.CppClass-class.html#_generate_constructor" title="cppclass.CppClass._generate_constructor()" alt="" coords="7,5,417,37"/>
<area shape="rect" href="pybindgen.cppmethod.CppNoConstructor-class.html#__init__" title="__init__()" alt="" coords="468,5,572,37"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#__init__" title="typehandlers.base.ForwardWrapperBase.__init__()" alt="" coords="623,5,1105,37"/>
</map>
  <img src="call_graph_for___init___32.gif" alt='' usemap="#call_graph_for___init___32" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pybindgen.cppmethod.CppNoConstructor-class.html#generate_call" class="summary-sig-name">generate_call</a>(<span class="summary-sig-arg">self</span>)</span><br />
      dummy method, not really called</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.cppmethod-pysrc.html#CppNoConstructor.generate_call">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pybindgen.cppmethod.CppNoConstructor-class.html#generate" class="summary-sig-name">generate</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">code_sink</span>,
        <span class="summary-sig-arg">class_</span>)</span><br />
      Generates the wrapper code code_sink -- a CodeSink instance that will
      receive the generated code class_ -- the c++ class wrapper the method
      belongs to</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.cppmethod-pysrc.html#CppNoConstructor.generate">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_generate_17-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for_generate_17-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_generate_17" name="call_graph_for_generate_17">
<area shape="rect" href="pybindgen.cppclass.CppClass-class.html#_generate_constructor" title="cppclass.CppClass._generate_constructor()" alt="" coords="7,89,417,121"/>
<area shape="rect" href="pybindgen.cppmethod.CppNoConstructor-class.html#generate" title="generate()" alt="" coords="468,89,585,121"/>
<area shape="rect" href="pybindgen.cppclass.CppClass-class.html#get_pystruct" title="cppclass.CppClass.get_pystruct()" alt="" coords="777,5,1097,37"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#write_close_wrapper" title="typehandlers.base.ForwardWrapperBase.write_close_wrapper()" alt="" coords="635,61,1240,93"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#write_open_wrapper" title="typehandlers.base.ForwardWrapperBase.write_open_wrapper()" alt="" coords="635,117,1240,149"/>
<area shape="rect" href="pybindgen.typehandlers.codesink.FileCodeSink-class.html#writeln" title="typehandlers.codesink.FileCodeSink.writeln()" alt="" coords="720,173,1155,205"/>
</map>
  <img src="call_graph_for_generate_17.gif" alt='' usemap="#call_graph_for_generate_17" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html">typehandlers.base.ForwardWrapperBase</a></code></b>:
      <code><a href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#generate_body">generate_body</a></code>,
      <code><a href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#get_py_method_def_flags">get_py_method_def_flags</a></code>,
      <code><a href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#reset_code_generation_state">reset_code_generation_state</a></code>,
      <code><a href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#set_parse_error_return">set_parse_error_return</a></code>,
      <code><a href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#write_close_wrapper">write_close_wrapper</a></code>,
      <code><a href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#write_open_wrapper">write_open_wrapper</a></code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__format__</code>,
      <code>__getattribute__</code>,
      <code>__hash__</code>,
      <code>__new__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__repr__</code>,
      <code>__setattr__</code>,
      <code>__sizeof__</code>,
      <code>__str__</code>,
      <code>__subclasshook__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Class Variables</span></td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html">typehandlers.base.ForwardWrapperBase</a></code></b>:
      <code><a href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#HAVE_RETURN_VALUE">HAVE_RETURN_VALUE</a></code>,
      <code><a href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#PARSE_TUPLE">PARSE_TUPLE</a></code>,
      <code><a href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#PARSE_TUPLE_AND_KEYWORDS">PARSE_TUPLE_AND_KEYWORDS</a></code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Properties</span></td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Method Details</span></td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">reason</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pybindgen.cppmethod-pysrc.html#CppNoConstructor.__init__">source&nbsp;code</a></span>&nbsp;
    <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for___init___32-div');return false;">call&nbsp;graph</a></span>&nbsp;</td>
  </tr></table>
  <div style="display:none" id="call_graph_for___init___32-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for___init___32" name="call_graph_for___init___32">
<area shape="rect" href="pybindgen.cppclass.CppClass-class.html#_generate_constructor" title="cppclass.CppClass._generate_constructor()" alt="" coords="7,5,417,37"/>
<area shape="rect" href="pybindgen.cppmethod.CppNoConstructor-class.html#__init__" title="__init__()" alt="" coords="468,5,572,37"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#__init__" title="typehandlers.base.ForwardWrapperBase.__init__()" alt="" coords="623,5,1105,37"/>
</map>
  <img src="call_graph_for___init___32.gif" alt='' usemap="#call_graph_for___init___32" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

  <p>reason -- string indicating reason why the class cannot be 
  constructed.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>return_value</code></strong> - type handler for the return value</li>
        <li><strong class="pname"><code>parameters</code></strong> - a list of type handlers for the parameters</li>
        <li><strong class="pname"><code>parse_error_return</code></strong> - statement to return an error during parameter parsing</li>
        <li><strong class="pname"><code>error_return</code></strong> - statement to return an error after parameter parsing</li>
        <li><strong class="pname"><code>force_parse</code></strong> - force generation of code to parse parameters even if there are 
          none</li>
        <li><strong class="pname"><code>no_c_retval</code></strong> - force the wrapper to not have a C return value</li>
        <li><strong class="pname"><code>unblock_threads</code></strong> - generate code to unblock python threads during the C function 
          call</li>
    </ul></dd>
    <dt>Overrides:
        object.__init__
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="generate_call"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">generate_call</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pybindgen.cppmethod-pysrc.html#CppNoConstructor.generate_call">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>dummy method, not really called</p>
  <dl class="fields">
    <dt>Overrides:
        <a href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#generate_call">typehandlers.base.ForwardWrapperBase.generate_call</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="generate"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">generate</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">code_sink</span>,
        <span class="sig-arg">class_</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pybindgen.cppmethod-pysrc.html#CppNoConstructor.generate">source&nbsp;code</a></span>&nbsp;
    <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_generate_17-div');return false;">call&nbsp;graph</a></span>&nbsp;</td>
  </tr></table>
  <div style="display:none" id="call_graph_for_generate_17-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_generate_17" name="call_graph_for_generate_17">
<area shape="rect" href="pybindgen.cppclass.CppClass-class.html#_generate_constructor" title="cppclass.CppClass._generate_constructor()" alt="" coords="7,89,417,121"/>
<area shape="rect" href="pybindgen.cppmethod.CppNoConstructor-class.html#generate" title="generate()" alt="" coords="468,89,585,121"/>
<area shape="rect" href="pybindgen.cppclass.CppClass-class.html#get_pystruct" title="cppclass.CppClass.get_pystruct()" alt="" coords="777,5,1097,37"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#write_close_wrapper" title="typehandlers.base.ForwardWrapperBase.write_close_wrapper()" alt="" coords="635,61,1240,93"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#write_open_wrapper" title="typehandlers.base.ForwardWrapperBase.write_open_wrapper()" alt="" coords="635,117,1240,149"/>
<area shape="rect" href="pybindgen.typehandlers.codesink.FileCodeSink-class.html#writeln" title="typehandlers.codesink.FileCodeSink.writeln()" alt="" coords="720,173,1155,205"/>
</map>
  <img src="call_graph_for_generate_17.gif" alt='' usemap="#call_graph_for_generate_17" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

  <p>Generates the wrapper code code_sink -- a CodeSink instance that will 
  receive the generated code class_ -- the c++ class wrapper the method 
  belongs to</p>
  <p>Returns the wrapper function name.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pybindgen-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Jul 12 17:23:19 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
